package model

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	OrderSn     string
	ShopId      int
	UserId      int
	Number      int
	OrderStatus int
}

func (o *Order) OrderAdd(db *gorm.DB) error {
	return db.Create(&o).Error
}
